package mapper;

import org.apache.ibatis.annotations.Param;
import pojo.AppCategory;
import pojo.AppInfo;
import pojo.DataDictionary;

import java.util.List;
import java.util.Map;

public interface AppInfoMapper {
    public List<AppInfo> appInfoList(Map<String, Object> AppInfoPage);//分页查询app信息
    public  List<AppInfo> appListCount(AppInfo appInfo);//查询信息总条数
    public List<DataDictionary> DataDictionaryList(String typeCode);//查询字典表信息
    public List<AppCategory> appCategoryList(Integer fid);//三级分类查询
    public List<AppCategory> appCategoryLists(Integer fid);//级分类查询
    public int deleteAppInfo(int inId);//删除
    public int deleteAppVersion(int appId);//删除APP同时删除所有本APP版本信息
    public int AppInfoLowerShelf(int inId);//商品下架
    public int AddAppInfo(AppInfo appInfo);//添加APP基础信息
    public int UpdateAppInfo(AppInfo appInfo);//修改APP基础信息
    public AppInfo appInfoListId(int noid);//根据ID查询App信息
    public int UpdateAppInfoversionId(@Param("versionId") int versionId, @Param("fid") int fid);//修改APP版本号
public int UpdateAppInfostatus(@Param("appId") int appId, @Param("status") int status);//根据Id修改App状态
}
